export const rules = {
  name: [
    {
      required: true,
      message: '请输入账号',
      trigger: 'blur'
    },
    {
      pattern: /^[a-zA-Z0-9]{6,11}$/,
      message: '用户名必须是6-11之间字符(字母或数字)',
      trigger: 'blur'
    }
  ],
  password: [
    {
      required: true,
      message: '请输入密码',
      trigger: 'blur'
    },
    {
      pattern: /^[a-zA-Z0-9]{6,20}$/,
      message: '密码必须是6-20之间字符(数字)',
      trigger: 'blur'
    }
  ]
}
